package filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

//@WebFilter(filterName = "ThreeFilter",value = "/one")
public class CThreeFilter implements Filter {
    public void destroy() {
    }

    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        System.out.println("请求正进行过滤====>>>three");

        chain.doFilter(req, resp);

        System.out.println("响应返回过滤器中进行返回=====>>three");
    }

    public void init(FilterConfig config) throws ServletException {

    }

}
